webpackJsonp([66],{

/***/ "7C+y":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/anjian/emergency/processRecord.vue


//
//
//
//
//
//



/* harmony default export */ var processRecord = ({
  data: function data() {
    return {
      list: []
    };
  },
  activated: function activated() {
    this.fetchData();
  },

  methods: {
    fetchData: function fetchData() {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var items, item;
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _context.next = 2;
                return commonApi["a" /* commonApi */].search('yj_information', {
                  equalTo: { ids: _this.$route.query.id }
                });

              case 2:
                items = _context.sent;
                item = items[0];


                _this.initList();
                _this.list = _this.list.filter(function (v) {
                  switch (v.step) {
                    case 1:
                      return item.createTime ? v.time = item.createTime : false;
                    case 2:
                      return item.programmeTime ? v.time = item.programmeTime : false;
                    case 3:
                      return item.Advance ? v.time = item.Advance : false;
                    case 4:
                      return item.command ? v.time = item.command : false;
                    case 5:
                      return item.summaryTime ? v.time = item.summaryTime : false;
                  }
                });

              case 6:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    },
    initList: function initList() {
      this.list = [{
        time: '未定义',
        desc: '接到报警，录入事故',
        step: 1
      }, {
        time: '未定义',
        desc: '结合事故情况，启动匹配应急预案',
        step: 2
      }, {
        time: '未定义',
        desc: '结合事故情况，进入先期处置',
        step: 3
      }, {
        time: '未定义',
        desc: '结合事故情况，进入指挥调度',
        step: 4
      }, {
        time: '未定义',
        desc: '信息录入，事故总结',
        step: 5
      }];

      this.list.reverse();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-55358641","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/anjian/emergency/processRecord.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":"过程记录"}},[_c('yt-timeLine',{attrs:{"list":_vm.list}})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var emergency_processRecord = (esExports);
// CONCATENATED MODULE: ./src/common/anjian/emergency/processRecord.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  processRecord,
  emergency_processRecord,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var anjian_emergency_processRecord = __webpack_exports__["default"] = (Component.exports);


/***/ })

});